﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;

public partial class frm_ShowMe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.LoadSystemVersionByXml();
        }
    }

    private void LoadSystemVersionByXml()
    {
        DataSet dst = new DataSet();

        dst.ReadXml(MapPath(ConfigurationManager.AppSettings["XMLVERFILEName"]));

        if (dst != null)
        {
            this.LblVer.Text = dst.Tables[0].Rows[0][0].ToString();
            this.LblUpdateDate.Text = dst.Tables[0].Rows[0][1].ToString();
        }

    }
}
